package com.flyco.modules.fms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 费用录入
 * @Author: flyco
 * @Date:   2021-02-20
 * @Version: V1.0
 */
@Data
@TableName("fms_fee_input")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="fms_fee_input对象", description="费用录入")
public class FmsFeeInput {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**店铺id*/
	@Excel(name = "店铺id", width = 15)
    @ApiModelProperty(value = "店铺id")
	@Dict(dictTable ="stm_store_info",dicText = "name",dicCode = "store_id")
	private Long storeId;
	/**收支类型:in/out*/
	@Excel(name = "收支类型:in/out", width = 15)
    @ApiModelProperty(value = "收支类型:in/out")
	@Dict(dicCode = "fms_category_type")
	private String categoryType;
	/**科目大类id*/
	@Excel(name = "科目大类id", width = 15)
    @ApiModelProperty(value = "科目大类id")
	@Dict(dictTable ="fms_category",dicText = "name",dicCode = "id")
	private Long categoryId;
	/**科目小类id*/
	@Excel(name = "科目小类id", width = 15)
    @ApiModelProperty(value = "科目小类id")
	@Dict(dictTable ="fms_category_sub",dicText = "name",dicCode = "id")
	private Long categorySubId;
	/**对象*/
	@Excel(name = "对象", width = 15)
    @ApiModelProperty(value = "对象")
	private String name;
	/**费用金额*/
	@Excel(name = "费用金额", width = 15)
    @ApiModelProperty(value = "费用金额")
	private java.math.BigDecimal amount;
	/**图片,以逗号分割*/
	@Excel(name = "图片,以逗号分割", width = 15)
    @ApiModelProperty(value = "图片,以逗号分割")
	private Object pics;
	/**发生日期*/
	@Excel(name = "发生日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发生日期")
	private Date occurTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private String note;
	/**9:经理;5:店长;1:导购*/
	@Excel(name = "9:经理;5:店长;1:导购", width = 15)
    @ApiModelProperty(value = "9:经理;5:店长;1:导购")
	private Integer position;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
